<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib uri="http://config.com" prefix="config"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <base href="<%=basePath%>">
    <title><config:getConfigValue key="platformName"/>-登录</title>

    <meta name="description" content="login page"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="shortcut icon" href="<config:getConfigValue key="platformDefaultFavicon"/>" type="image/x-icon">

    <link rel="stylesheet" href="assets/css/login.css" />
</head>
<body>
<div class="container">
    <div class="login">
        <div class="title">登录账户</div>
        <form action="" method="post" id="loginForm">
            <input type="text" placeholder="用户名" class="name" name="userName"/>
            <input type="password" placeholder="密码" class="psd" name="password"/>
            <button type="button" class="btn" onclick="login('loginForm')">登 录</button>
        </form>
        <div class="bottom">
            <input type="checkbox" class="checkbox"/>
            <span>一周内自动登录</span>
            <a href="#" class="forget">忘记密码?</a>
        </div>
    </div>
</div>
</body>
<script src="assets/js/jquery-2.0.3.min.js"></script>
<script type="text/javascript">
    var ctx="<%=basePath%>";
</script>
<script type="text/javascript" src="assets/js/custom/syscommons.js"></script>
<script type="text/javascript" src="assets/js/jquery.backstretch.min.js"></script>
<script type="text/javascript">
    //第一个表单元素获取焦点
    $("input").first().focus();
    //回车即触发登录
    $(document).keyup(function (event) {
        if (event.which == 13) {
            login('loginForm');
        }
    });
</script>
</html>